#pragma once
#include <cocos2d.h>
#include <vector>

USING_NS_CC;

template <typename T>
class CCNumber :
	public CCObject
{
public:
	CCNumber(void);
	~CCNumber(void);

	T getNumber();
	void setNumber(T num);
	static CCNumber<T>* create(T va);
	T Number;
	std::vector<T*> _listObject;
};

template <typename T>
CCNumber<T>* CCNumber<T>::create(T va)
{
	CCNumber<T>* result = new CCNumber<T>();
	result->setNumber(va);
	result->autorelease();
	return result;
}

template <typename T>
void CCNumber<T>::setNumber( T num )
{
	Number = num;
}

template <typename T>
T CCNumber<T>::getNumber()
{
	return Number;
}

// template <typename T>
// void CCNumber<T>::setNumber( T num )
// {
// 	_number = T;
// }
// 
// template <typename T>
// T CCNumber<T>::getNumber()
// {
// 	return _number;
// }

template <typename T>
CCNumber<T>::~CCNumber( void )
{

}

template <typename T>
CCNumber<T>::CCNumber( void )
{
}
